<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@page import="com.jim.to.MiniBlogTO"%>   
<%@page import="java.util.List"%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>MY MINI BLOGS</title>
</head>
<body>
<h2>WHAT AM I DOING?</h2>
<form name="miniBlog" action="/miniBlog">
<textarea name="content">
</textarea>
<input type="submit" value="Publish">
</form>
<%
List <MiniBlogTO> blogs= (List<MiniBlogTO>)request.getAttribute("miniBlogs");
%>
<table>
	<% for(int i=0; i< blogs.size(); i++)
	{
		MiniBlogTO blog = blogs.get(i);
		out.println("<tr>");
		out.println("<td>"+blog.getContent()+"</td>");
		out.println("</tr>");
	}
	%>
</table>
</body>
</html>